Send to and Print from Microsoft 365 SharePoint/OneDrive

The Send to Microsoft 365 connector uses the Microsoft Graph API to allow users to access SharePoint or OneDrive. You can also create a connector to print from Microsoft 365.

Ensure you follow these configuration steps in the order they are presented. These instructions require you to perform configuration tasks in both the Microsoft Azure portal and in the Streamline NX Management console.

For instructions to help the MFP user to access the Send to Microsoft 365 functionality, refer to the Ricoh Streamline NX Connector User Guide.

Prerequisites

Before you complete these instructions, ensure you meet the following requirements:

  • An existing Microsoft 365 account through the Microsoft Azure Portal is required to register the client application

  • A default printer with proper print driver must be specified on the same server where the Delegation Server is installed.

  • Direct Print must be enabled within the SLNX Admin Tool (Configuration ® SLNX Embedded Settings ® Embedded Authentication).

1. Register a Client Application

To allow the connector to access the Microsoft 365 repository, you must register an application on the Microsoft Azure Portal.

  1. Login to the Azure portal at https://portal.azure.com

  1. Click Azure Active Directory ⟶ App registrations.

  2. Click New Registration.

  3. Enter a display name for the application (i.e. SLNX).

  4. Select an account type:

    1. To use Login User mode, select Web and then copy/paste the value from the Redirect field on the Microsoft 365 Cloud Authentication Settings screen (refer to step 4 in 2. Configure Cloud Authentication Settings below).
    2. To use Proxy User mode, select Public client/native (mobile & desktop) and then enter the following URL: https://login.microsoftonline.com/common/oauth2/nativeclient
  5. Click Register.

  6. If both authentication modes are needed for connector usage, you need to register only one application on Entra ID Portal that can be used by both ‘Microsoft 365’ and ‘Microsoft 365 - Proxy’. In this case, there will be two Redirect URL entries, one with Type Web and one with Type Public Client/Native (Mobile & Desktop).

  1. If Allow user consent for apps is unselected from Enterprise application -> Consent and permissions, the Azure Administrator must grant the following API permissions to the application:

  • Files.ReadWrite.All

  • Sites.ReadWrite.All

  • Offline_access

  1. Leave this App Registration screen open while you move to the next set of instructions. You will need to copy and paste some information from Entra ID to SLNX.

2. Configure Cloud Authentication Settings

These steps require you to copy and paste information from the Entra ID app registration screen to Streamline NX.

  1. Login to the Streamline NX Management console.

  2. From the Navigation tree, click [Workflow] ⟶ [Cloud Authentication Settings].

  3. From the Application list, click either Microsoft 365 (if you enabled Login User mode when you registered application on the Entra ID Portal), or Microsoft 365 – Proxy (if you enabled Proxy user).

  4. Complete the following fields in the screen that appears:

  5. Setting

    Options

    Application Type

    This field is filled in automatically – either Microsoft 365 or Microsoft 365 Proxy depending on your selection in step 3.

    Application Name

    Type a name for the application, such as ‘Ricoh OneDrive Connector’ or similar.

    Company Name

    Copy and paste this name from the Azure Portal overview page, generally in the format ‘xxxx.onmicrosoft.com

    Client ID

    Copy and paste this client/application ID from the Entra ID Portal application page for the new application you created earlier.

    Client Secret*

    If you enabled Microsoft 365 (Login User), you must generate a Client secret within the Entra ID portal:

    1. Click Certificates & secrets ⟶ New client secret.

    2. Provide a secret description and choose an expiration period.

    3. Generate the secret. Copy the secret and then paste it in this field in SLNX.

    Tenant ID

    Copy and paste this directory/tenant ID from the Entra ID Portal application page for the new application you created earlier.

    Redirect URL

    If you chose Microsoft 365, this field is read-only and is populated based on your SLNX Core Server address.

    If you chose Microsoft 365-Proxy, you can edit this field if necessary.

    Product

    Enable SharePoint/OneDrive.

    If you will also configure Microsoft 365 Exchange connector, you can also enable the Exchange product. Refer to Send to Microsoft 365 Exchange.

    Client Secret is required for Login User only.

  1. Click Test.

  2. A new screen requires your username and password to authenticate with the Entra ID portal. If authentication is successful, the specified Client ID/Client Secret/Tenant ID/Redirect URL is passed to the Entra ID for authentication. When the options appear, click Accept to complete verification. If all verification completes successfully, a message indicates ‘Test successful’. If an error occurs, or if you click Cancel, a message ‘An unexpected error has occurred’ appears instead. Check your settings and try the Test again. Note that this Test is for confirmation purposes only and the authorization is not saved system-wide. Authorization from the User Console must still be performed.

  1. Click Save to complete the settings.

3. Create the Connector

You can create four different connectors depending on your needs. The instructions below allow you to set up the following:

  • Send to SharePoint: Allows users to scan a document and send to a SharePoint destination.

  • Send to OneDrive: Allows users to scan a document and send to their OneDrive.

  • Print from SharePoint: Allows users to send a document to print directly from SharePoint.

  • Print from OneDrive: Allows users to print a document directly from OneDrive.

Repeat these instructions for each of the connectors you may want to create.

  1. From the Navigation tree, click [Workflow] and then click select [Shared Connector Settings].

  1. On the [Shared Connector Settings] tab, click [Add].

  2. When the Create Shared Connector screen appears, provide the following information:

Setting

Options

Connector Name

  • Enter a unique name in the [Name] field that you can use to identify this as the Microsoft 365 connector in the list.

If you are creating more than one Microsoft 365 connector, ensure you provide a prolific name that the user can easily determine the connector purpose based on its name. For example, if you are creating two connectors – One for Send to SharePoint and another for Print from SharePoint – ensure the individual workflows are clearly named and are reflective of the workflow contents to allow the user to identify the correct workflow on the MFP.

Description

  • Enter a description that you and other Administrators can use to easily identify this connector in the Shared Connector Settings list [if you need to modify the settings at a later time, for example].

Connector Category

  • Select Destination. 

Connector Type

  • Select either Send to Microsoft 365 SharePoint (also choose this option for Send to OneDrive) OR choose Print from Microsoft 365 SharePoint (also choose this option for Print from OneDrive).

Location

  • Note: This connector is available for On Server workflows only. The location is not editable.

  1. Click [OK] to continue.

You will now see four active tabs: General, Setting, Preset, and Workflows. 

  1. Switch to the [Setting] tab.

  2. Optionally, you can set a language-specific display name. Choose each language and then enter the corresponding text that will appear on the MFP.

  1. Complete the following fields in this order in the Server Settings section. The fields are described in the table below.

  2. Setting

    Options

    Products

    Select the destination for this connector. Depending on the destination, the required fields differ.

    • SharePoint: Send to/Print from SharePoint Online with access to Team Site, library, or folder.

    • OneDrive: Send to OneDrive/Print from OneDrive.

    Authentication Method

    Select the authentication method to connect to SharePoint or One Drive.

    • Proxy User: The Login information entered below is used to authenticate. If you select this option, three new fields appear:

    • Email Address – This field will be automatically populated by the connector after successful authorization with the account from the pop-up screen.

    OneDrive impersonation must be configured in Microsoft 365 before you can enable OneDrive proxy access mode in SLNX. If OneDrive and Proxy access is selected above, the User ID shown in the Email address field must have access rights to the impersonated OneDrive repository. Refer to the Impersonated User section below.

    • Authorization URL -This field populates automatically when Microsoft 365 – Proxy is selected in the SLNX Cloud Authentication settings. This field is not visible or required for Login User.

    • Authorization Code - You must copy and paste the Authorization URL (above) into a web browser, and then login with a valid Microsoft 365 credentials to obtain the Authorization code. Paste the entire web browser URL field that returns in this field, and then click Authorize to complete the authorization. This field is not visible or required for Login User.

    One-Touch Scan is supported by this connector only if OneDrive and SharePoint authentication method is Proxy User. If MFP logged-in user is not authorized, the workflow will open but the job will fail at execution time and job log status becomes “ERROR”. For instructions to enable One-Touch Scan, refer to Create a Workflow.

    • Login User: Scans documents to Microsoft 365 using the Microsoft 365 account(s) that the SLNX user authorizes from the User Console after logging in with an MFP user account. After selecting this workflow, a list of authorized Microsoft 365 accounts will be presented and the user must select one account to proceed and navigate the workflow.

    Impersonated User

    If you selected OneDrive as the destination and Proxy User as the Authentication method, complete these fields to specify the attribute that will be used as the username for the Microsoft 365 name construction.

    • User Name: Select one of Login User Name, User Email Address or a custom property (if defined).

    • Domain: Select one of Empty, Domain, User DN or a custom property (if defined).

    You must also configure the Proxy user to match these selections in the SharePoint Admin Center. Refer to OneDrive Proxy User Configuration on SharePoint Admin Center.

    HTTP Proxy Server

    If you are connecting to SharePoint or OneDrive through a proxy server, complete the following fields.

    • IP Address – Enter the IP Address of the proxy server.

    • Port No – Enter the port number to connect to the proxy server. The default value is 8080.

    • Account – Enter the account to use to login to the proxy server.

    • Password – Enter the password to use to login to the proxy server.

    • Test – Click Test to ensure the connection is verified.

  1. Complete the following fields in the Add/Delete a Startpoint Path section (optional). Click Add to begin and then complete these fields in the pop-up screen:

  2. Setting

    Options

    Display Name

    • Enter a unique name for the startpoint path.

    Subsite Path

    • Specify the subsite that the MFP user will navigate from. If you leave this path blank, the user can navigate from the user’s SharePoint root.

    • For navigation from a subsite of the root site, enter a subsite name in the field.

    • For navigation from sites other than the root site, enter the path (i.e. sites/TeamSite1)

    • If left blank for SharePoint, it navigates from user SharePoint root.

    • For navigation from subsite of root site, enter subsite name only in the field.

    Folder Path

    • Specify the library and/or folder path for the MFP user to navigate from. If you leave this field blank, the library and/or folder under the user’s default site is displayed on the initial screen.

    • If you select OneDrive, only the user default library can be navigated; therefore, you do not need to specify a library.

    • SharePoint – If left blank, the library and/or folder under user default site will be displayed on initial screen.

    • SharePoint – e.g. lib/f1/f2. If library does not exist, the node is disabled and cannot be navigated. If folder does not exist, the node is enabled. When it’s drilled down, error occurs. If the node is selected as destination, job fails.

    • OneDrive – e.g. f1/f2. Always use Documents library. If folder does not exist in the library, it will be created first before file gets delivered to it.

    Enable SharePoint Site Selection

    • Enable this checkbox to display and allow site navigation at the MFP.

    Test

    • This button is only enabled if Proxy User mode is enabled.

    • Click Test to test the connection to the specified startpoint with the user credentials defined with Option settings.

  1. The following fields are also available only if Send to SharePoint is selected:

  2. Setting

    Description

    Enable Subfolder Browsing

    • Enable this checkbox to allow MFP users to browse subfolders and select folders as destinations. 

    Create a Subfolder

    • Enable the Subfolder Directory checkbox to create a subfolder under the destination folders. A folder will be automatically created under the destinations folder for all scanned documents. When this option is enabled, you must specify a Folder Prefix. Select a metadata item from the list. You can optionally enable the Add Suffix to Folder Name checkbox to add a suffix to the subfolder is one already exists with the same name.

    • When disabled, scanned documents are sent to and stored directly under the specified destination folder.

    File Naming Rules

    • Specify the method used to name a scanned document in the destination folder. Use of these methods:

    • Manually enter the file name

    • Select a metadata item from the list to use as the file name

  1. Set destination folder(s) in the [Preset] tab (optional).

  2. This tab allows Administrator to select StartPoint path folder as predetermined destination folder only if Authentication Method set in Setting Tab is Proxy User.

    Setting

    Description

    Selected Destinations

    • Display the preset destination folder from SharePoint or Onedrive folder.

    • Administrator can only preset one destination folder per connector. However, MFP user can select more destination folders when using the workflow.

    • If selected product in Settings tab is SharePoint, you can navigate down from StartPoint path and select a sub-directory folder as preset destination.

    • If selected product in Settings tab is OneDrive and Impersonated User is configured, you can select one StartPoint path only as preset destination. The subfolders found in the configured StartPoint path can only be navigated on MFP using an authorized user. On the MFP, the preset StartPoint path is preselected, and user can navigate down to subfolders and select them as destinations.

    • You can remove all selected preset folders by clicking Reset All in Selected Destinations dialog.

    Folder/File Browser

    • Displays all the StartPoint paths created in Settings tab. Click the folder name to select the folder as preset destination.

    • Click to navigate to subfolders and click to go back to parent folder.

    Disabled folder names cannot be selected as preset destination and caused by error(s) in configuration on StartPoint folder or subsite path. Please test your SharePoint or OneDrive connection and authentication on Settings tab.

    Search and View Folders

    • These two settings are always disabled in connector configuration due to Graph API limitations, but these features can be used and working in MFP. Authorized MFP users can search and view folders or directories.

    Root

    • This will display the root or StartPoint folder or directory path. If you set SharePoint as product and navigate to multiple subfolders, you can click Root to go back to the starting path.

  1. Click Save to save the connector. 

OneDrive Proxy User Configuration on SharePoint Admin Center

If you enabled OneDrive and selected Proxy User in the configuration above, you must also update the following settings in the SharePoint Admin Center.

  • Enter the Impersonated User name in the User name field. In this example, the user name is ‘Cloud Test’.

  • Enter the Proxy User email address in the Site Collection Administrator field. In this example, the user name is ‘Yi Admin’.

Graphical user interface, text, application, email

Description automatically generated

The screen capture below shows the result of the file delivery into One Drive. The delivered file is shown as ‘Modified By’ the proxy user. Both the proxy user and impersonated user are file owners.

Graphical user interface, application

Description automatically generated

Next Steps

The remainder of the configuration steps are common to all connectors. Refer to Common Configuration Tasks for instructions.